package com.example.InnerClass;

public class Test3Innerclass {
    public static void main(String[] args) {
        Outer3 o = new Outer3();
        o.method();
    }
}

class Outer3 {

    int a = 10;

    public void method() {

        int b = 20;

        class Inner {
            public void show() {
                System.out.println("show...");
                System.out.println(a);
                System.out.println(b);
            }
        }

        Inner i = new Inner();
        i.show();

    }

}